<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <title>Insert title here</title>
    <link rel="stylesheet" th:href="@{css/bootstrap.min.css}"/>
    <link rel="stylesheet" th:href="@{css/bootstrap-theme.min.css}"/>
</head>
<body>
<div class="panel panel-primary">
    <div class="panel-heading">
        <h3 class="panel-title">第一个基于Thymeleaf模板引擎的Spring Boot Web应用</h3>
    </div>
</div>
<div class="container">
    <div>
        <h4>用户列表</h4>
    </div>
    <div class="row">
        <div class="col-md-4 col-sm-6" th:each="user : ${users}">
            <div class="caption">
                <p>用户名:</p>
                <p th:text="${user.name}"></p>
                <p>性别:</p>
                <p th:text="${user.sex == 1 ? '男' : (user.sex == 0 ? '女' : '未知')}"></p>
                <p>喜欢的颜色:</p>
                <p th:each="color : ${user.myColors}" th:text="${color}"></p>
            </div>
        </div>
    </div>
</div>
</body>
</html>
